package com.tm.day517.wechat;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author:Cjj
 * @Date:2025/5/17 16:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BasicUserInfo {
    public static final int BOY=-1;

    public static final int GIRL=1;

    private String nickname;

    public int age;

    public  int sex;

    public String des;

    public BasicUserInfo(int age,int sex){
        System.out.println("有参构造函数被执行");
        this.age=age;
        this.sex=sex;
    }

    public void setNickname(String nickname){
        nickname =nickname.trim();
    }

}
